package com.woniuxy.orderdao.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 冉杰
 * @since 2024-01-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("order_info")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @TableId(value = "order_num", type = IdType.AUTO)
    private String orderNum;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 用户账号名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 用户电话
     */
    @TableField("user_phone")
    private String userPhone;

    /**
     * 商家id
     */
    @TableField("venue_id")
    private Integer venueId;

    /**
     * 用户电话
     */
    @TableField("venue_phone")
    private String venuePhone;

    /**
     * 课程id
     */
    @TableField("product_id")
    private Integer productId;

    /**
     * 课程名称
     */
    @TableField("product_name")
    private String productName;

    /**
     * 支付金额
     */
    @TableField("order_money")
    private BigDecimal orderMoney;

    /**
     * 订单创建时间
     */
    @TableField("order_create_time")
    private String orderCreateTime;

    /**
     * 订单支付时间
     */
    @TableField("order_pay_time")
    private String orderPayTime;

    /**
     * 订单备注
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 0私教课 1团课 2次卡 3有效期卡
     */
    @TableField("order_type")
    private Integer orderType;

    /**
     * 评价状态0未评价1已评价
     */
    @TableField("order_evaluation_state")
    private Integer orderEvaluationState;

    /**
     * 订单状态 0待付款 1已付款 2已取消 3已完成 4已评价
     */
    @TableField("order_state")
    private Integer orderState;

    /**
     * 教练id
     */
    @TableField("coach_id")
    private Integer coachId;
    /**
     * 私教预约id
     */
    @TableField("coach_reserv_id")
    private Integer coachReservId;
    /**
     * 团课预约id
     */
    @TableField("team_reserv_id")
    private Integer teamReservId;
}
